package com.imagination.applet.domain.revenue.order.repository;

import com.imagination.applet.domain.revenue.order.model.UserOrder;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserOrderRepository extends JpaRepository<UserOrder, Long> {

    UserOrder findByTraceNo(String traceNo);

    int countByUserIdAndStatus(Long userId, Integer status);
}
